//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.pinda.auth.enumeration.code;

public enum OrgType {
    BRANCH_OFFICE(1, "分公司"),
    TOP_TRANSFER_CENTER(2, "一级转运中心"),
    SECONDARY_TRANSFER_CENTER(3, "二级转运中心"),
    BUSINESS_HALL(4, "网点");

    private Integer type;
    private String name;

    private OrgType(Integer type, String name) {
        this.name = name;
        this.type = type;
    }

    public Integer getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static OrgType getEnumByType(Integer type) {
        if (null == type) {
            return null;
        } else {
            OrgType[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                OrgType temp = var1[var3];
                if (temp.getType().equals(type)) {
                    return temp;
                }
            }

            return null;
        }
    }
}
